<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>
    <title>Document</title>
</head>

<body>

    <div id="app">
        <span v-for="n in 10" :key="n">{{ n }} </span>
        <br />
        <div v-for="(item,index) in items">{{index}}-{{item.id}},{{item.message}} ==== {{parentMessage}}</div>

        <hr>

        <div v-for="(value, name, index) in myObject">
            {{index}} - {{name}} : {{value}}
        </div>

        <hr>

        <template v-for="(value, name, index) in myObject">
            {{index}} - {{name}} : {{value}}
        </template>

    </div>

    <script>
        const App = {
            data() {
                return {
                    parentMessage: 'Parent',
                    items: [{ id: 1, message: 'Foo' }, { id: 2, message: 'Bar' }],
                    myObject: {
                        title: 'How to do lists in Vue',
                        author: 'Jane Doe',
                        publishedAt: '2016-04-10'
                    }
                }
            }
        }
        Vue.createApp(App).mount('#app')
    </script>

</body>

</html>